import { RouterProvider, createBrowserRouter } from 'react-router-dom'
import { NotFound } from '../components/NotFound'
import Counter from '../pages/counter/Counter'

export const router = createBrowserRouter([
  {
    path: '/',
    element: <Counter />,
    errorElement: <NotFound />,
  },
])

const ProviderRouter = () => {
  return <RouterProvider router={router}></RouterProvider>
}

export default ProviderRouter
